package com.powernode.test02.bean;

public class Circle {

    double r;

    public void showPerimeter(double r) {
        double perimeter = 2*3.14*r;
        System.out.println("圆形周长为：" + perimeter);
    }

    public void showArea(double r) {
        double area = r*r*3.14;
        System.out.println("圆形面积："+area);
    }

    public Circle(double r) {
        this.r = r;
    }
}
